package com.moleq.models;

import java.util.ArrayList;
import java.util.List;
import java.util.Locale;

import android.content.Context;

public class GlobalInfo {

	
	private static GlobalInfo instance;

	public GlobalInfo() {

	}

	public static GlobalInfo getInstance() {
		if (instance == null) {
			instance = new GlobalInfo();
		}
		return instance;
	}

	public String appDataFolder;
	public String cashier;

	// public int isUseCasioDevice;
	public PosSetting mPosSetting;
	// public TaxSetting mTaxSetting;

	public int storeNo;
	public int stationNo;
	public String openTime;
	public String closeTime;
	public int flipChartMax;
	public double tareRate;
	public String weightUnit;
	public int priceDigits = 4;
	public ArrayList<TaxSetting> taxSettingList;
	public ArrayList<TareSetting> tareSettingList;
	public String CurrencySymbol = "";
	public Context CurrentContext = null;
	public Context ShareContext = null;
	public Context ShareItyContext = null;
	public String CurrencySign = "";
	public int CurrentFreeFuncID = FreeFuncRpt.NONE;
    public boolean isCalcWeight = false;
    public boolean isNormalize = false;
    public boolean isMGNetwork = false;
//    public  boolean isUserDVR = false;
    public boolean isInventory = false;
	// public void setIsUseCasioDevice(int isUseCasioDevice) {
	// this.isUseCasioDevice = isUseCasioDevice;
	// }
	public boolean outOfPaper = false;
	public int decimalPoint = 2;
	public boolean calendar_type;
	public List<Integer> useFuntionsList = new ArrayList<Integer>();
	public boolean isShowDesc = false;
	public boolean isZeroBaln = false;
	public boolean isZeroPrice = false;
	public int foodStampRule = 1;
	public boolean isPrintServiceItem = false;
	public boolean isSigHost = false;
	public boolean isSaveSig = false;
	public double sigMinValue;
	
	public String country = Locale.getDefault().getCountry();
	public String language = Locale.getDefault().getLanguage();
	public RoundingSetting mRoundingSetting = null;
	public int receiptPrinter = 0;
	
	public boolean isDemoVersion = false;
}
